package com.example.tass.licence;

import java.io.Serializable;
import java.util.Date;


public class LicenceContent implements Serializable {

    /**
     * licence的使用者
     */
    private String user;

    /**
     * Licence生效时间
     */
    private Date notBeforeTime;

    /**
     * Licence失效时间
     */
    private Date notAfterTime;

    /**
     * 允许的IP地址
     */
    private String allowIp;

    /**
     * 使用者服务器的MAC地址
     */
    String mac;

    /**
     * Licence签名信息
     */
    private String sign;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public Date getNotBeforeTime() {
        return notBeforeTime;
    }

    public void setNotBeforeTime(Date notBeforeTime) {
        this.notBeforeTime = notBeforeTime;
    }

    public Date getNotAfterTime() {
        return notAfterTime;
    }

    public void setNotAfterTime(Date notAfterTime) {
        this.notAfterTime = notAfterTime;
    }

    public String getAllowIp() {
        return allowIp;
    }

    public void setAllowIp(String allowIp) {
        this.allowIp = allowIp;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "LicenceContent{" +
                "user='" + user + '\'' +
                ", notBeforeTime=" + notBeforeTime +
                ", notAfterTime=" + notAfterTime +
                ", allowIp='" + allowIp + '\'' +
                ", mac='" + mac + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
}
